package net.uman.service;

import java.util.List;

import net.uman.dao.ReviewMessageDao;
import net.uman.entity.ReviewMessage;
import net.uman.framework.modules.orm.Page;
import net.uman.framework.modules.orm.PropertyFilter;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ReviewMessageManager extends Manager {
	@Autowired
	private ReviewMessageDao reviewMessageDao;
	
	public void getReviewMessagePage(Page<ReviewMessage> page,List<PropertyFilter> filters){
		reviewMessageDao.findPage(page, filters);
	}
	
	public  ReviewMessage get(Long id){
		return reviewMessageDao.get(id);
	}
	
	public void insertReviewMessage(ReviewMessage entity){
		reviewMessageDao.save(entity);
	}
	
	public void delete(Long id){
		reviewMessageDao.delete(id);
	}

	public void save(ReviewMessage reviewMessage) {
		reviewMessageDao.save(reviewMessage);
	}

	public Page<ReviewMessage> findPage(Page<ReviewMessage> page,
			List<PropertyFilter> filters) {
		return reviewMessageDao.findPage(page, filters);
	}
}
